﻿// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Schema_INV_RETURN_IMPORT_ITEM
// * CreateDate    : 2013/1/28 13:06:02
// * Creater       : InvReturnImportItemTable
// * LastChangeDate: 2013/1/28 13:06:02
// * LastChanger   : 2013/1/28 13:06:02
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;

namespace ESOL.Common.Schema
{
    [Serializable]
    public partial class InvReturnImportItemTable : TableInfo
    {
        public const string C_TableName = "INV_RETURN_IMPORT_ITEM";

        public const string C_ID = "ID";
        public const string C_INV_RETURN_IMPORT_ORDER_ID = "INV_RETURN_IMPORT_ORDER_ID";
        public const string C_SALES_RETURN_ITEM_ID = "SALES_RETURN_ITEM_ID";
        public const string C_PRODUCT_ID = "PRODUCT_ID";
        public const string C_IMPORT_QTY = "IMPORT_QTY";
        public const string C_MST_WAREHOUSE_ID = "MST_WAREHOUSE_ID";
        public const string C_MST_LOCATION_ID = "MST_LOCATION_ID";

        public InvReturnImportItemTable()
        {
            _tableName = "INV_RETURN_IMPORT_ITEM";
        }

        protected static InvReturnImportItemTable _current;
        public static InvReturnImportItemTable Current
        {
            get
            {
                if (_current == null)
                {
                    Initial();
                }
                return _current;
            }
        }

        private static void Initial()
        {
            _current = new InvReturnImportItemTable();

            _current.Add(C_ID, new ColumnInfo(C_ID, "Id", true, typeof(string)));
            _current.Add(C_INV_RETURN_IMPORT_ORDER_ID, new ColumnInfo(C_INV_RETURN_IMPORT_ORDER_ID, "InvReturnImportOrderId", false, typeof(string)));
            _current.Add(C_SALES_RETURN_ITEM_ID, new ColumnInfo(C_SALES_RETURN_ITEM_ID, "SalesReturnItemId", false, typeof(string)));
            _current.Add(C_PRODUCT_ID, new ColumnInfo(C_PRODUCT_ID, "ProductId", false, typeof(string)));
            _current.Add(C_IMPORT_QTY, new ColumnInfo(C_IMPORT_QTY, "ImportQty", false, typeof(decimal)));
            _current.Add(C_MST_WAREHOUSE_ID, new ColumnInfo(C_MST_WAREHOUSE_ID, "MstWarehouseId", false, typeof(string)));
            _current.Add(C_MST_LOCATION_ID, new ColumnInfo(C_MST_LOCATION_ID, "MstLocationId", false, typeof(string)));

        }

        public ColumnInfo ID
        {
            get { return this[C_ID]; }
        }

        public ColumnInfo INV_RETURN_IMPORT_ORDER_ID
        {
            get { return this[C_INV_RETURN_IMPORT_ORDER_ID]; }
        }

        public ColumnInfo SALES_RETURN_ITEM_ID
        {
            get { return this[C_SALES_RETURN_ITEM_ID]; }
        }

        public ColumnInfo PRODUCT_ID
        {
            get { return this[C_PRODUCT_ID]; }
        }

        public ColumnInfo IMPORT_QTY
        {
            get { return this[C_IMPORT_QTY]; }
        }

        public ColumnInfo MST_WAREHOUSE_ID
        {
            get { return this[C_MST_WAREHOUSE_ID]; }
        }

        public ColumnInfo MST_LOCATION_ID
        {
            get { return this[C_MST_LOCATION_ID]; }
        }



    }
}

